import Vue from "vue";
import Router from "vue-router";
import Login from './components/Login.vue'
import Home from './components/Home.vue'
import Welcome from './components/welcome.vue'
import Examinee from './examinee/examinee.vue'
import Info from './info/info.vue'
import Line from './line/line.vue'
import FirstGrade from './first/first.vue'
import SecondeGrade from './second/second.vue'
import Major from './major/major.vue'
import Admission from './admission/admission.vue'

Vue.use(Router);

export default new Router({
  routes: [
    { path: '/', redirect: '/login' },
    { path: '/login', component: Login },
    {
      path: '/home', component: Home,
      meta: {
        title: "主页"
      },
      redirect: '/welcome',
      children: [
        {  path: '/welcome',  component: Welcome },
        { path: '/examinee', component: Examinee },
        { path: '/major', component: Major},
        { path: '/firstgrade', component: FirstGrade },
        { path: '/secondgrade', component: SecondeGrade},
        { path: '/line', component: Line},
        { path: '/admission', component: Admission},
        { path: '/info', component: Info}
      ],
    }

  ],
});
